#include"ThreadPool.hpp"

using func = function<void()>;
void Print()
{
    cout << "syx 666" << endl;
}
int main()
{
    EnableFILE();
    ThreadPool<func> *Pool = ThreadPool<func>::GetThreadPool();
 
    int cnt = 5;
    while (cnt--)
    {
        Pool->Enqueue(Print);
        sleep(1);
        if(cnt==1)
            Pool->Stop();
    }
    return 0;
}